package com.taobao.top.converter
{
	import com.taobao.top.model.Shop;
	import com.taobao.top.TOPUtil;
	public class ShopConverter
	{
		public function ShopConverter()
		{
		}
		
		public static function convert(shopObj:Object):Shop
		{
			var shop:Shop = new Shop();
			shop.bulletin = shopObj.bulletin;
			shop.cid = shopObj.cid;
			shop.created = TOPUtil.getCustomDate( shopObj.bulletin.toString());;
			shop.desc = shopObj.desc;
			shop.modified = TOPUtil.getCustomDate( shopObj.modified.toString());; 
			shop.nick = shopObj.nick;
			shop.pic_path = shopObj.pic_path;
			shop.sid = shopObj.sid;
			shop.title = shopObj.title;
			return shop;
		}
	}
}